package com.exam.service.ti;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import com.exam.common.vo.ExamTiVO;
import com.exam.common.vo.TiVO;
import com.exam.common.vo.page.PageModel;
import com.exam.entity.ExamTi;

public interface TiService {
	public Serializable save(ExamTi entity);	
	public Serializable merge(ExamTi entity);
	

	public void update(ExamTi entity);	
	
	public void saveOrUpdate(ExamTi entity);

	public void delete(ExamTi entity);	

	public ExamTi findByKey(Serializable id);

	public List<ExamTi> findAll();
	
	public PageModel<ExamTiVO> findByPage() ;
	public PageModel<TiVO> findPage() ;
	
	public Map<Integer,String> getTiDifficulty();
	
	public Map<Integer,String> getTiType();
	
	public Map<Integer,String> getSubject();
	
	public ExamTiVO loadByTiId(int tiId); 
}
